﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebApplication1
{
    public partial class jump : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

            if (PreviousPage !=null)
            {
                TextBox tb = (TextBox)PreviousPage.FindControl("TextBox1");
                TextBox tb1 = (TextBox)PreviousPage.FindControl("TextBox2");
                TextBox tb2 = (TextBox)PreviousPage.FindControl("TextBox3");
                this.Label1.Text = "你好，当前时间为" + System.DateTime.Now.ToLongDateString();
                if (tb != null)
                {         
                    this.Label3.Text = "姓名： "+tb.Text;
                    
                }
                if (tb1 != null)
                {
                    
                    this.Label4.Text = "年龄： " + tb1.Text;
                }
                if (tb2 != null)
                {
                   
                    this.Label5.Text = "爱好： " + tb2.Text;
                }
                
            }
        }
    }
}